//
//  RBHomeFilterView.h
//  WaitBuyer
//
//  Created by Lan on 2018/11/10.
//  Copyright © 2018年 SummerTea. All rights reserved.
//  筛选栏视图,点击弹出下拉框

#import <UIKit/UIKit.h>

@interface RBDataFilterView : UIView

/**
 @para:filters
 array 套 array
 第一个默认,显示,不下拉
 @[
 @[@"类型", @"全部", @"KTV", @"酒吧", @"饭庄"],
 @[@"排序", @"默认", @"由远及近", @"从近到远"],
 ]
 */
+ (instancetype)viewWithFilters: (NSArray *)filters selectBlock: (void(^)(NSInteger section, NSInteger row, NSString *text))block;
/**
 设置筛选栏的文字
 */
- (void)setTitle: (NSString *)title withBtnIndex: (NSInteger)index;

/**
 如果父视图是scrollview,调整其contentOffset,以求多展示下拉内容
 手动触发
 */
- (BOOL)scrollAnimated: (BOOL)animated;

/**
 是否自动滚动↑
 */
@property(nonatomic, assign) BOOL autoScroll;

@end
